package com.iraeta.dao.iraorder;

import com.iraeta.entity.Iraorder;
import com.iraeta.entity.resulttype.IraorderResultType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IraorderDao {
    int insert(Iraorder record);
    int updateByPrimaryKey(Iraorder record);
    int deleteByPrimaryKey(Integer id);
    Iraorder selectByPrimaryKey(Integer id);
    IraorderResultType selectIraorderResultType(Integer id);
    List<IraorderResultType> selectByCreateUserId(@Param("createUserId") Integer createUserId, @Param("orderno") String orderno, @Param("title") String title);
    List<IraorderResultType> selectByKeHuUserId(@Param("keHuUserId") Integer keHuUserId, @Param("orderno") String orderno, @Param("title") String title);
}